package com.lefevre.cms.bean.sms;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 短信接口
 *
 * @author Lefevre
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sms_interface")
@Entity
@Table(name = "sms_interface")
public class SmsInterface implements Serializable {
    private static final long serialVersionUID = 8947489767344741648L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(type = IdType.INPUT)
    private Integer id;

    /**
     * 名称
     **/
    @Column(length = 100)
    private String name;

    /**
     * 接口产品  1.阿里大于  10.云片
     **/
    private Integer interfaceProduct;

    /**
     * 是否选择  true:启用 false: 禁用
     **/
    private boolean enable = false;

    /**
     * 短信接口动态参数
     **/
    @Lob
    private String dynamicParameter;

    /**
     * 短信发送服务 json格式 List<SendService>
     **/
    @Lob
    private String sendService;

    /**
     * 排序
     **/
    private Integer sort = 1;

    /**
     * 版本
     **/
    @Version
    private Integer version = 0;

}
